<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<jsp:include page="../head.jsp">
<jsp:param value="查看援助信息" name="title"/>
</jsp:include>
</head>
<body>
	<div class="container">
		<div class="row">
			<div id="content" class="col-lg-12">
				<div class = "dao">		
					<a class="section" href = "manager">客户跟进</a>
					<i class="right chevron icon divider"></i>
					 <a class="section" href = "cust/form">援助管理</a>
		  			<i class="right chevron icon divider"></i>
					<span class="active section">查看援助</span>							
				</div>
				<div class = "content">	
					<table class="ui celled striped table">
						<thead>
							<tr>
								<th colspan="5" style="text-align:center;font-size:14px;">援助信息列表</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td class="collapsing">申请人姓名</td>
								<td class="collapsing">援助对象</td>
								<td class="collapsing">处理人姓名</td>
								<td class="collapsing">结果</td>
								<td class="collapsing"><div style="height:40px"></div></td>
							</tr>
							<c:forEach items="${vo }" var="vo">
								<tr>
									<td class="collapsing">${vo.emp_name}</a>
									</td>
									<td class="collapsing">${vo.cust_name }</td>
									<td class="collapsing">${vo.a_name }</td>
									<td>
										<c:if test="${ vo.apply_status_id == 1 }">
											<a href="javascript:void(0)"><i></i> 对方还未响应</a>&nbsp;&nbsp;
										</c:if>
										<c:if test="${ vo.apply_status_id == 2 }">
											<a href="javascript:void(0)"><i></i> 对方答应援助</a>
										</c:if>
										<c:if test="${ vo.apply_status_id == 3 }">
											<a href="javascript:void(0)"><i></i> 对方拒绝援助</a>
										</c:if>
										<c:if test="${ vo.apply_status_id == 4 }">
											<a href="javascript:void(0)"><i></i> 双方完成援助</a>
										</c:if>
									</td>
									<td>
										<c:if test="${ vo.apply_status_id == 1 || vo.apply_status_id == 4 }">&nbsp;&nbsp;&nbsp;&nbsp;</c:if>
										<c:if test="${ vo.apply_status_id == 2 }">
											<a href="apply/manager?applyId=${ vo.apply_id }&id=4&custId=${ vo.cust_id }"><i></i> 完成援助</a>
										</c:if>
										<c:if test="${ vo.apply_status_id == 3 }">
											<a href="apply/manager?applyId=${ vo.apply_id }&id=3"><i></i> 撤回援助</a>
										</c:if>
									</td>
								</tr>
							</c:forEach>
							<c:if test="${empty vo}">
								<tr>
									<td style="text-align: center;" colspan="5">暂无记录</td>
								</tr>
							</c:if>
						</tbody>
					</table>
					<c:if test="${totalPage > 1 }">
						<div class="page">
							<a <c:if test="${page!=1}">href="dept/form?page=1${queryString}"</c:if>
								class="${page == 1?'disable':''}">首页</a> <a
								<c:if test="${page!=1}">href="dept/form?page=${page-1}${queryString}"</c:if>
								class="${page == 1?'disable':''}">上一页</a> <a
								<c:if test="${page!=totalPage}">href="dept/form?page=${page+1 }${queryString}"</c:if>
								class="${page == totalPage?'disable':''}">下一页</a> <a
								<c:if test="${page!=totalPage}">href="dept/form?page=${totalPage }${queryString}"</c:if>
								class="${page == totalPage?'disable':''}">最后一页</a> <span>
								${page}/${ totalPage} </span>
						</div>
					</c:if>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>